package com.ypinkj.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ypinkj.app.entity.Dict;
import com.ypinkj.app.entity.User;
import org.apache.ibatis.annotations.*;

import java.util.List;
import java.util.Map;


@Mapper
public interface DictDao extends BaseMapper<Dict> {
    @Update("<script>" +
            " update sys_dict" +
            " <set>" +
            " <if test='dict.type != null'>" +
            "  type = #{dict.type}," +
            " </if>" +
            " <if test='dict.k != null'>" +
            "  k=#{dict.k}," +
            " </if>" +
            " <if test='dict.val != null'>" +
            "  val=#{dict.val}," +
            " </if>" +
            " </set>" +
            " where id =" +
            " #{dict.id}" +
            " </script>")
    int updateDict(@Param("dict")Dict dict);






}
